import request from "./request";

//问卷管理
export const addPaper = (data) =>
  request({
    method: "post",
    url: "/papers",
    data,
  });

  export const getPapers = () =>
  request({
    method: "get",
    url: "/papers",
     
  });

  export const delpapers = (id) =>
  request({
    method: "delete",
    url: `/papers/${id}`,
  });
  
  export const exist = (data) =>
  request({
    method: "get",
    url: `/papers/exist`,
    params: data,
  });

  export const getPaper = (id) =>
  request({
    method: "get",
    url: `/papers/${id}`,
  });

  export const editPaper = (id,data) =>
  request({
    method: "put",
    url: `/papers/${id}`,
    data,
  });

